-- GENERATED SPELL FOR [Enraged Apparition] --


function spell0_27551(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(50420,pUnit)
pUnit:RegisterEvent('Sorts_27551', 603, 1)
end

function Sorts_27551(pUnit, Event)
local choix_sorts_27551 = math.random(0, 0)
if choix_sorts_27551 == 0 then
pUnit:RegisterEvent('spell0_27551', 1, 1)
end
end

function mob27551_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27551', math.random(1500, 3000), 1)
end

function mob27551_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27551_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27551_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27551, 1, 'mob27551_Action')
RegisterUnitEvent(27551, 2, 'mob27551_Leave')
RegisterUnitEvent(27551, 3, 'mob27551_Kill')
RegisterUnitEvent(27551, 4, 'mob27551_Die')
